<?php  
        session_start();
        if ($_SESSION["flag"] != 2){
                echo "<script language='javascript'>";
                echo "alert('You have no permission to read this page!');";
                echo "history.back();";
                echo "</script>";
                header("location:login.php");
        }else {
                echo '
<!DOCTYPE html>
<html>

<head>
<meta name="viewport" content="width=device-width; text/html; charset=utf-8" http-equiv="Content-Type">
<title>登入系統</title>
<link href="../mobile.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="../Model/autocomplete.css" type="text/css" media="screen">
        <script src="../Model/jquery.js" type="text/javascript"></script>
        <script src="../Model/dimensions.js" type="text/javascript"></script>
        <script src="../Model/autocomplete.js" type="text/javascript"></script>

        <script type="text/javascript">
                $(function(){
                        setAutoComplete("searchField", "results", "autocomplete.php?part=");
                });
        </script>
</head>

<body>

<div id="banner">
	餐廳查詢
	<div id="home">
		<a href="select.php">
		<img alt="" class="auto-style1" height="40" src="../pic/home.png" width="40"></a>
	</div>

	<div id="logout">
		<a href="../logout.php">
		<img alt="" class="auto-style1" height="41" src="../pic/logout.png" width="41"></a>
	</div>
</div>

<div id="content">
	<form method="post" action="check.php" name="myForm">
		<br/>
		<div id="button_z">請輸入餐廳的名稱（全名）</div>
		<p id="auto"><input type="text" name="searchField" size="15" id="searchField"></p>
		<p><input type="submit" value="查詢">&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset"></p>		
		<hr>
		<br/>		
	</form>
</div>


</body>

</html>';
}
?>
